import { request } from './network';
const URL = '/goods';

export function getSearch(data) {
  return request({
    url: URL + '/search',
    data
  })
}

export function getDetail(goods_id) {
  return request({
    url: URL + '/detail',
    data: {
      goods_id
    }
  })
}
export function getGoodsSearch(query) {
  return request({
    url: URL + '/qsearch',
    data: {
      query
    }
  })
}